from django.conf.urls.defaults import *
from django.views.generic import list_detail

from cetcore.views import *
from cetcore.models import *

archive_info = {
    "queryset" : Archive.objects.all(),
}

urlpatterns = patterns('',
    (r'^file/set_value/(?P<file_id>\d+)/$', 'cetcore.views.set_value'),
    (r'^patterns/process/$', 'cetcore.views.process_patterns'),
    (r'^archive/upload/$', 'cetcore.views.upload_archive'),
    (r'^file_entry/(?P<file_id>\d+)/$', 'cetcore.views.file_details'),
    (r'^test', list_detail.object_list, archive_info),
    (r'^index$', index),
    (r'^$', index),
    (r'^ajax/$', ajax_test),
    (r'^ajax_rating/$', ajax_rating),
    (r'^ajax_test2/$', ajax_test2),
)
